package com.intretech.umsin.common.web;

/**
 * @version V1.0
 * @EnumName: ResultCode
 * @Description: ResultCode 对应提供的枚举类型
 * @author: 李启联
 * @date: 2022-7-15 8:46
 * @Copyright: Copyright (c) 2022
 */
public enum ResultCode implements StatusCode{

    SUCCESS("0","请求成功"),
    FAILED("9999","请求失败"),
    BUSSINESS_ERROR("1000","业务异常"),
    VALIDATE_ERROR("1001","参数校验失败");

    private String code;

    private String msg;

    @Override
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ResultCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }


}